<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>添加商品</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <link href="<?php echo (ADMIN_CSS_URL); ?>mine.css" type="text/css" rel="stylesheet">
    </head>

    <body>

        <div class="div_head">
            <span>
                <span style="float:left">当前位置是：角色管理-》分配权限 : 【<?php echo ($role_info["role_name"]); ?>】</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="/666/shop/index.php/Admin/Goods/showlist">【返回】</a>
                </span>
            </span>
        </div>
        <div></div>

        <div style="font-size: 13px;margin: 10px 5px">
            <form action="/666/shop/index.php/Admin/Role/distribute/role_id/10" method="post" enctype="multipart/form-data">
            <table border="1" width="100%" class="table_a">
               <?php foreach($auth_infoA as $k => $v){?>
                <tr>
                    <td><input type="checkbox" name='auth_id[]' value="<?php echo $v['auth_id'];?>"
                      <?php if(in_array($v['auth_id'],$info)){ echo 'checked=checked';}?>  /><?php echo $v['auth_name'];?></td>
                   <td>
                   <?php foreach($auth_infoB as $kk => $vv){if($vv['auth_pid']===$v['auth_id']){?>    
                   <div style="float: left;width: 200px">
                       <input type="checkbox" name='auth_id[]' value="<?php echo $vv['auth_id'];?>"
                      <?php if(in_array($vv['auth_id'],$info)){ echo 'checked=checked';}?> /> <?php echo $vv['auth_name'];?>
                   </div>
                   <?php }}?>
                   </td>
                </tr>
               <?php }?>
            </table>
                <input type="submit" value='分配权限'/>
            </form>
        </div>
    </body>
</html>